package yuxi;

public class studentDemo2 {
    public static void main(String[] args) {
        student s = new student();

        s.name = "张三";
        s.age = 20;
        System.out.println(s.name);
        System.out.println(s.age);

        s.study();
        s.doHomework();

        student s2 = new student();
        s2.name = "李四";
        s2.age = 30;
        System.out.println(s2.name);
        System.out.println(s2.age);

        s2.study();
        s2.doHomework();
    }
}
